package com.java.system.common.entity.system;

import com.java.system.common.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @ClassName: SysMachineModel实体类
 * @Description:
 * @Version: v1.0.0
 * @Author: Shan Feiyang
 * @Date: 2019-09-06 13:33:23
 */
@ApiModel(value = "设备型号表")
@Table(name = "sys_machine_model")
@Data
@Accessors(chain = true)
public class SysMachineModel extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 设备类别
     */
    @Column(name = "category_id")
    @ApiModelProperty(value = "设备类别")
    private String categoryId;

    /**
     * 编码
     */
    @Column(name = "code")
    @ApiModelProperty(value = "编码")
    private String code;

    /**
     * 名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 排序
     */
    @Column(name = "seq")
    @ApiModelProperty(value = "排序")
    private Integer seq;

    /**
     * 描述
     */
    @Column(name = "remark")
    @ApiModelProperty(value = "描述")
    private String remark;

    /**
     * 标记是否被绑定
     */
    @Transient
    private Boolean hasChecked;

    /**
     * 设备类别
     */
    @Transient
    private SysMachineCategory category;
}